package com.yaaha.controller;

import com.yaaha.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestMyStarter {
    @Autowired
    MyService myService;

    @GetMapping("/getFullName/{name}")
    public String getFullName(@PathVariable("name") String shortName) {
        return myService.getFullName(shortName);
    }
}
